import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/work_count_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/work_count_entity.g.dart';

///任务板(作业状态数量统计)
@JsonSerializable()
class WorkCountEntity {
  WorkCountEntity();

  factory WorkCountEntity.fromJson(Map<String, dynamic> json) =>
      $WorkCountEntityFromJson(json);

  /// 作业已验收数量 (已完成)
  int? acceptedCount = 0;

  ///	作业作废数量
  int? invalidCount = 0;

  ///	作业已签发数量 (进行中)
  int? issuedCount = 0;

  ///	作业未签发数量 (未进行)
  int? notIssuedCount = 0;

  ///	作业撤销数量
  int? revokeCount = 0;

  ///	违规数量
  int? violationCount = 0;

  ///	作业中数量
  int? workingCount = 0;

  Map<String, dynamic> toJson() => $WorkCountEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
